/*
 * An XML document type.
 * Localname: NewOperationResponse
 * Namespace: http://grupobbva.com.pe/HarecService/
 * Java type: pe.com.grupobbva.harecservice.NewOperationResponseDocument
 *
 * Automatically generated - do not modify.
 */
package pe.com.grupobbva.harecservice.impl;
/**
 * A document containing one NewOperationResponse(@http://grupobbva.com.pe/HarecService/) element.
 *
 * This is a complex type.
 */
public class NewOperationResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements pe.com.grupobbva.harecservice.NewOperationResponseDocument
{
    
    public NewOperationResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName NEWOPERATIONRESPONSE$0 = 
        new javax.xml.namespace.QName("http://grupobbva.com.pe/HarecService/", "NewOperationResponse");
    
    
    /**
     * Gets the "NewOperationResponse" element
     */
    public pe.com.grupobbva.harecservice.NewOperationResponseDocument.NewOperationResponse getNewOperationResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            pe.com.grupobbva.harecservice.NewOperationResponseDocument.NewOperationResponse target = null;
            target = (pe.com.grupobbva.harecservice.NewOperationResponseDocument.NewOperationResponse)get_store().find_element_user(NEWOPERATIONRESPONSE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "NewOperationResponse" element
     */
    public void setNewOperationResponse(pe.com.grupobbva.harecservice.NewOperationResponseDocument.NewOperationResponse newOperationResponse)
    {
        synchronized (monitor())
        {
            check_orphaned();
            pe.com.grupobbva.harecservice.NewOperationResponseDocument.NewOperationResponse target = null;
            target = (pe.com.grupobbva.harecservice.NewOperationResponseDocument.NewOperationResponse)get_store().find_element_user(NEWOPERATIONRESPONSE$0, 0);
            if (target == null)
            {
                target = (pe.com.grupobbva.harecservice.NewOperationResponseDocument.NewOperationResponse)get_store().add_element_user(NEWOPERATIONRESPONSE$0);
            }
            target.set(newOperationResponse);
        }
    }
    
    /**
     * Appends and returns a new empty "NewOperationResponse" element
     */
    public pe.com.grupobbva.harecservice.NewOperationResponseDocument.NewOperationResponse addNewNewOperationResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            pe.com.grupobbva.harecservice.NewOperationResponseDocument.NewOperationResponse target = null;
            target = (pe.com.grupobbva.harecservice.NewOperationResponseDocument.NewOperationResponse)get_store().add_element_user(NEWOPERATIONRESPONSE$0);
            return target;
        }
    }
    /**
     * An XML NewOperationResponse(@http://grupobbva.com.pe/HarecService/).
     *
     * This is a complex type.
     */
    public static class NewOperationResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements pe.com.grupobbva.harecservice.NewOperationResponseDocument.NewOperationResponse
    {
        
        public NewOperationResponseImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName OUT$0 = 
            new javax.xml.namespace.QName("http://grupobbva.com.pe/HarecService/", "out");
        
        
        /**
         * Gets the "out" element
         */
        public java.lang.String getOut()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OUT$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "out" element
         */
        public org.apache.xmlbeans.XmlString xgetOut()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(OUT$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "out" element
         */
        public void setOut(java.lang.String out)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OUT$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(OUT$0);
                }
                target.setStringValue(out);
            }
        }
        
        /**
         * Sets (as xml) the "out" element
         */
        public void xsetOut(org.apache.xmlbeans.XmlString out)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(OUT$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(OUT$0);
                }
                target.set(out);
            }
        }
    }
}
